package jman.jan06;

public class Person {
	//教室里有6个人
	//分析差异：性别，年龄，身高，体重，头发长短，性格，爱好，基因，指纹（唯一）
	char sex;
	short age;
	float high;
	double weight;
	char hair;
	String style;
	String intrest;
	String finger_print;
	String name;
	
	public char getSex() {
		return sex;
	}
	public void setSex(char sex) {
		this.sex = sex;
	}
	public short getAge() {
		return age;
	}
	public void setAge(short age) {
		this.age = age;
	}
	public float getHigh() {
		return high;
	}
	public void setHigh(float high) {
		this.high = high;
	}
	public double getWeight() {
		return weight;
	}
	public void setWeight(double weight) {
		this.weight = weight;
	}
	public char getHair() {
		return hair;
	}
	public void setHair(char hair) {
		this.hair = hair;
	}
	public String getStyle() {
		return style;
	}
	public void setStyle(String style) {
		this.style = style;
	}
	public String getIntrest() {
		return intrest;
	}
	public void setIntrest(String intrest) {
		this.intrest = intrest;
	}
	public String getFinger_print() {
		return finger_print;
	}
	public void setFinger_print(String finger_print) {
		this.finger_print = finger_print;
	}
	//分析动态的功能：写代码，说话，吃饭，做饭，买菜，睡觉
	//方法格式：返回数据类型 方法名字（输入参数的类型 输入参数的名字，。。。）{//return 返回的值}
	String coding(String compute){
		return "一段代码";
	}
	void say(String content){
		System.out.println(this.name+':'+content);
	}
	public Person(){
		System.out.println("这个是我们自己写的构造方法");
	}
	Person(String name){
		this.name=name;
	}
}
